home *** CD-ROM | disk | FTP | other *** search
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Newsgroups: comp.lang.c
- Subject: Re: preprocessing questio
- Date: 8 Mar 1996 12:01:53 GMT
- Organization: Ripco Communications, Inc.
- Message-ID: <4hp7jh$krh@gail.ripco.com>
- NNTP-Posting-Host: golden.ripco.com
-
- jalvo@cloud9.net (John G. Alvord) in <313b9e9f.480978@NEWS.CLOUD9.NET>
- writes:
-
- > #define XXX (1)
- > #include <stdio.h>
- > int main(void)
- > {
- > #if XXX
- > printf("Hello World!");
- > #endif
- > return 0;
- > }
-
- [...]
- >.... A close reading of the ANSI C standard document
- >reveals a clause that seems to imply (my reading) that a pre-processed series
- >of tokens that appear to be a preprocessing statement will be ignored...
-
- ISO 6.8.1 contains the language, concerning #if
- "Prior to evaluation, macro invocations in the list of preprocessing
- tokens that will become the controling constant expression (except
- for those macro names modified by the defined unary operator) just
- as in ordinary text."
- I suggest including this in your `close reading.'
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-